package com.wl.jetpackdemo.base.network

import com.wl.jetpackdemo.banner.Banner
import com.wl.wllite.net.BaseResponse
import io.reactivex.Observable
import retrofit2.http.GET

/**
 * 接口API
 * Created by wangliang on 2021/1/27.
 */
interface ApiService {

    @GET("banner/json")
    suspend fun getBanners(): BaseResponse<MutableList<Banner>>

    @GET("banner/json")
    fun getBannersV2(): Observable<BaseResponse<MutableList<Banner>>>
}